﻿///***************************************************************
/// 시  스  템 : Updms.Car.Dac
/// 단위시스템 : CAR
/// 계      층 : Data Access Layer
/// 프로그램명 : Car_Dac_UPDMS_CAR_REPORT_Car2010r
/// 파  일  명 : Car_Dac_UPDMS_CAR_REPORT_Car2010r.cs
/// 설      명 : 연비
///***************************************************************
/// 수정ID 일자       이름     내용
///---------------------------------------------------------------
/// CH001  2008-08-22 송시명   최초 작성
/// CH002  2010-10-22 송시명   월평균연비 추가
///***************************************************************
using System.Data;
using System.Data.SqlClient;
using System.EnterpriseServices;
using System.Runtime.InteropServices;

using SMFramework.Data;

namespace Updms.Car.Dac
{
	[ComVisible(true)]
	[Transaction(TransactionOption.Supported)]
	[JustInTimeActivation(true)]
	public class Car_Dac_UPDMS_CAR_REPORT_Car2010r : Base.AppFramework.DacBase
	{
		public Car_Dac_UPDMS_CAR_REPORT_Car2010r()
		{
		}

		#region NT [GetFuelInfo]

		/// <summary>
		/// 주유일별/월평균 주유챠트
		/// </summary>
		/// <param name="lo_dp"></param>
		/// <returns></returns>
		[AutoComplete]
		public DataSet GetFuelInfo(DataPack lo_dp)
		{
			string strSql = "usp_UPDMS_CAR_REPORT_Car2010r_Get_Fuel_Info";

			SqlParameter[] paramArray = lo_dp.ToSqlParameters();

			DataSet ds = new DataSet();
			return _agent.Fill(strSql, "UPDMS_CAR_REPORT", ds, paramArray, CommandType.StoredProcedure);
		}
		
		#endregion

		#region NT [GetMonthlyAvgFuelEfficiency]

		/// <summary>
		/// 월평균 연비
		/// </summary>
		/// <param name="lo_dp"></param>
		/// <returns></returns>
		[AutoComplete]
		public DataSet GetMonthlyAvgFuelEfficiency(DataPack lo_dp)
		{
			string strSql = "usp_UPDMS_CAR_REPORT_Car2010r_Get_Monthly_Avg_Fuel_Efficiency";

			SqlParameter[] paramArray = lo_dp.ToSqlParameters();

			DataSet ds = new DataSet();
			return _agent.Fill(strSql, "UPDMS_CAR_REPORT", ds, paramArray, CommandType.StoredProcedure);
		}

		#endregion
	}
}
